package com.net.tomcat5.Servlet2;

import com.net.tomcat5.Request;
import com.net.tomcat5.Response;

/**
 * Administrator
 *
 * @author jiangbang
 * @date 2016/8/25
 */
public abstract class Servlet {
    public void service(Request request, Response response) {
        this.doGet(request,response);
        this.doPost(request,response);
    }

    public abstract void doGet(Request request, Response response);
    public abstract void doPost(Request request, Response response);
}
